package org.example.codegenerate.auxhelper;

import lombok.Data;
import lombok.ToString;
import org.example.codegenerate.modelext.WebVo.annotation.Column.ForeignKeyVo;
import org.example.codegenerate.modelext.WebVo.annotation.Column.IndexVo;
import org.example.codegenerate.modelext.WebVo.annotation.Column.Other;
import org.example.codegenerate.modelext.WebVo.annotation.Column.ValidateVo;


import javax.persistence.*;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

//@Entity
@Data
@Entity
@Table
@ToString
//@SingleTableVo()
public class AuditRuleItemJpa implements Serializable {
   /* private static final long serialVersionUID = 1L;
    @TableId(
            type = IdType.UUID
    )*/
    @Id
    @GeneratedValue(strategy= GenerationType.AUTO)
    private Long id;

    @Max(10)
    @NotBlank(message = "sdss")
    @Size
    //@PageVo(fieldDefaultValue = "ss")//如果设置了默认值，那么在注解的时候就可以录入比较少。或者不录入数据，保证每个都必须有值。要么是默认值或者要么是输入的值
    private String filename;
    @Column
    //@PageVo
    @ValidateVo
    @ForeignKeyVo
    @IndexVo

    @Other
    private String varname;
    //private String style;


}
